﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Caching;
namespace SX.Utils
{
    public static class CacheHelper
    {
        private static List<ICache> CacheList = new List<ICache>(); // 多级缓存
        public static T Get<T>(string key)
        {
            if (CacheList.Count == 0)
            {
                return default(T);
            }
            return default(T);
        } 
    }

    public interface ICache {
        bool TryGet<T>(string key, out T data);
        T Get<T>(string key);
        bool Save<T>(string key,T data);
    }
}
